﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Chromos.Actors;
using Chromos.ActionEngine;

namespace Chromos.AIEngine
{
    class ProjectileAIEngine : ActorAIEngine
    {
        bool isSeeking;
        /// <summary>
        /// Percentage of velocity at which we can apply directional correction
        /// </summary>
        float seekPercentage;
        public ProjectileAIEngine(Actor actor, string aggressiveSetting, int radius, bool isSeeking, float seekPercentage)
            : base(actor, aggressiveSetting, radius)
		{
            this.isSeeking = isSeeking;
            this.seekPercentage = seekPercentage;

            if (actor.velocity.X > 0)
            {
                actor.getActionEngine().playAction(ActionType.Movement, 1);
            }
            else
            {
                actor.getActionEngine().playAction(ActionType.Movement, 0);
            }
		}
    }
}
